package com.taotao.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品描述
 */
public class ItemDesc implements Serializable{
    private static final long serialVersionUID = -306579683792111732L;
    /**
     * 商品ID
     */
    private Long itemId;
    /**
     * 创建时间
     */
    private Date created;
    /**
     * 更新时间
     */
    private Date updated;
    /**
     * 商品描述
     */
    private String itemDesc;

    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ItemDesc itemDesc1 = (ItemDesc) o;

        if (itemId != null ? !itemId.equals(itemDesc1.itemId) : itemDesc1.itemId != null) return false;
        if (created != null ? !created.equals(itemDesc1.created) : itemDesc1.created != null) return false;
        if (updated != null ? !updated.equals(itemDesc1.updated) : itemDesc1.updated != null) return false;
        return itemDesc != null ? itemDesc.equals(itemDesc1.itemDesc) : itemDesc1.itemDesc == null;
    }

    @Override
    public int hashCode() {
        int result = itemId != null ? itemId.hashCode() : 0;
        result = 31 * result + (created != null ? created.hashCode() : 0);
        result = 31 * result + (updated != null ? updated.hashCode() : 0);
        result = 31 * result + (itemDesc != null ? itemDesc.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "ItemDesc{" +
                "itemId=" + itemId +
                ", created=" + created +
                ", updated=" + updated +
                ", itemDesc='" + itemDesc + '\'' +
                '}';
    }
}